package com.numkit.briefdraw.store;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class JPGFileFilter extends FileFilter {

	public boolean accept(File file) {
		if (file.isDirectory())
			return true;
		String fileFullName = file.getAbsolutePath().toLowerCase();
		if (fileFullName.endsWith(".jpg"))
			return true;
		return false;
	}

	public String getDescription() {
		return "(*.jpg) JPG Image Format";
	}

}
